package com.ruoyi.web.controller.system;

import com.ruoyi.framework.web.service.SysTouristLoginServiceImpl;
import com.ruoyi.system.domain.TouristLogin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * <p>其他方式登录</p>
 * <p>创建日期：2021-07-19</p>
 *
 * @author zhou-qf
 */
@RestController
@RequestMapping("/external")
public class SysTouristLoginController {

    @Autowired
    private SysTouristLoginServiceImpl sysTouristLoginService;

    @PostMapping("/touristLogin")
    public String touristLogin(@RequestBody @Valid TouristLogin touristLogin){
        return sysTouristLoginService.touristLogin(touristLogin);
    }

}
